package com.yxsd.common.entity;

import com.pandawork.core.entity.AbstractEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Product
 *
 * @author: zhangteng
 * @time: 2015/1/4 17:52
 */
@Entity
@Table(name = "t_product")
public class Product extends AbstractEntity {

    @Id
    private Integer id;

    @Column(name = "supplier_id")
    private Integer supplierId;

    private String name;

    @Column(name = "total_num")
    private Integer totalNum;

    @Column(name = "borrowed_num")
    private Integer borrowedNum;

    private String desc;

    public Integer getId() {
        return id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }

    public Integer getBorrowedNum() {
        return borrowedNum;
    }

    public void setBorrowedNum(Integer borrowedNum) {
        this.borrowedNum = borrowedNum;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
